<div>
    <div data-plugin="eventEditorWindow" class="pop_up schedule_pop_up">
        <div data-plugin="titleTab">
            <div title="{{'TITLE_SCHEDULE' | i18n}}" class="schedule_panel" data-plugin="scheduleEditController">
                <input type="hidden" name="id" value=""/>

                <div class="pop_content schedule_pop_content clear">
                    <div class="schedule_content">
                        <div class="schedule_type">
                            <div class="type_content_edit"><input type="text" name="name"
                                                                  placeholder="{{'SCHEDULE_SELECT_TYPE_INPUT_CONTENT' | i18n}}"/>
                            </div>
                        </div>
                        <div class="schedule_color_type">
                            <div class="select_type js-color-type">
                                <a href="javascript:;" class="type_title">
                                    <span class="null-text">{{'TYPE' | i18n}}</span>
                                    <span data-is="colorIndicator" class="schedule_null_20"></span>
                                </a>

                                <div class="type_list drop_div" style="display:none;"><!-- 下拉列表在此生成 --></div>
                            </div>
                        </div>
                        <div class="schedule_field" style="padding-top:0px;">
                            <div class="field_name">{{'SCHEDULE_STARTEND_TIME' | i18n}}</div>
                            <div class="field_content">
                                <div class="data_content">
                                    <input type="text" class="text month" name="startDate"
                                           placeholder="{{'SCHEDULE_SELECT_START_DATE' | i18n}}"/>
                                    <input type="text" class="text hours" name="startTime"
                                           placeholder="{{'SCHEDULE_SELECT_START_TIME' | i18n}}"/>
                                    <span class="dao">{{'TO' | i18n}}</span>
                                    <input type="text" class="text month" name="endDate"
                                           placeholder="{{'SCHEDULE_SELECT_END_DATE' | i18n}}"/>
                                    <input type="text" class="text hours" name="endTime"
                                           placeholder="{{'SCHEDULE_SELECT_END_TIME' | i18n}}"/>
                                </div>
                                <span class="warning" style="display:none;">{{'SCHEDULE_HAVE_INTIME' | i18n}}</span>
                            </div>
                        </div>
                        <div class="schedule_field schedule_check_field">
                            <div class="field_name"></div>
                            <div class="field_content">
                                <div class="tixin check_box ui-check-buttonset">
                                    <input id="chk_schedule_allday" type="checkbox" name="isAllDay"/><label
                                        for="chk_schedule_allday">{{'SCHEDULE_ALLDAY' | i18n}}</label>
                                </div>
                                <div class="tixin check_box ui-check-buttonset js-rpt-info">
                                    <input id="chk_schedule_repeat" type="checkbox" name="isRecur"/><label
                                        for="chk_schedule_repeat">{{'SCHEDULE_REPEAT' | i18n}}</label>
                                </div>
                                <div class="data_check js-schedule-repeatpanel" style="display:none;">
                                    <div class="arrow_area_wrap">
                                        <div class="arrow_area_inside"></div>
                                    </div>
                                    <div class="data_check_type">
                                        <div class="check_filed">
                                            <div class="field_name">{{'SCHEDULE_REPEAT_TYPE' | i18n}}</div>
                                            <div class="field_content ui-select-buttonset">
                                                <select name="frequency" class="chongfu">
                                                    <option value="1">{{'SCHEDULE_REPEAT_DAY' | i18n}}</option>
                                                    <option value="2">{{'SCHEDULE_REPEAT_WEEK' | i18n}}</option>
                                                    <option value="3">{{'SCHEDULE_REPEAT_MONTH' | i18n}}</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="check_filed js-schedule-repeatcond">
                                            <div class="field_name">{{'SCHEDULE_END_CONDITION' | i18n}}</div>
                                            <div class="field_content ui-select-buttonset">
                                                <select class="jieshu" name="recurStopCondition">
                                                    <option value="1">{{'SCHEDULE_NO_END' | i18n}}</option>
                                                    <option value="2">{{'SCHEDULE_END_DATE' | i18n}}</option>
                                                </select>
                                                <input type="text" class="text data_jieshu" name="recurStopValue"
                                                       style="display:none;"
                                                       placeholder="{{'SCHEDULE_SELECT_END_DATE' | i18n}}"/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="schedule_field remind_field">
                            <div class="field_name">{{'SCHEDULE_REMIND_TIME' | i18n}}</div>
                            <div class="field_content">
                                <select name="reminder" class="tixin">
                                    <option value="-1">{{'SCHEDULE_NO_REMIND' | i18n}}</option>
                                    <option isallday="0" value="0">{{'SCHEDULE_IN_TIME' | i18n}}</option>
                                    <option isallday="0" value="600">{{'SCHEDULE_EARLY_10MINUTE' | i18n}}</option>
                                    <option isallday="0" value="1800">{{'SCHEDULE_EARLY_30MINUTE' | i18n}}</option>
                                    <option isallday="0" value="3600">{{'SCHEDULE_EARLY_1HOUR' | i18n}}</option>
                                    <option isallday="0" value="7200">{{'SCHEDULE_EARLY_2HOUR' | i18n}}</option>
                                    <option isallday="0" value="21600">{{'SCHEDULE_EARLY_6HOUR' | i18n}}</option>
                                    <option isallday="0" value="86400">{{'SCHEDULE_EARLY_1DAY' | i18n}}</option>
                                    <option isallday="1" value="-32400">{{'SCHEDULE_9_INDAY' | i18n}}</option>
                                    <option isallday="1" value="54000">{{'SCHEDULE_9_BEFOREDAY' | i18n}}</option>
                                </select>
                            </div>
                            <a href="javascript:;" class="tixinhelp js-tooltip"
                               title="{{'SCHEDULE_REMIND_TOPHONE' | i18n}}"></a>
                        </div>
                        <div class="schedule_field remind_field">
                            <div class="field_name">{{'SCHEDULE_PARTNER' | i18n}}</div>
                            <div class="field_content">
                                <input class="canyupeople" name="members"/>
                            </div>
                        </div>
                        <div class="schedule_field  remind_field">
                            <div class="field_name">{{'SCHEDULE_RELATE_BUSINESS' | i18n}}</div>
                            <div class="field_content">
                                <div class="relation_div">
                                    <select name="belongId" class="relation_business">
                                        {{if SESSION.tenantType == 1}}
                                            <option value="66"
                                                    url="/json/crm_search/all-accounts.action?accountType=4">
                                                {{'OBJECT_AGENT' | i18n}}
                                            </option>
                                            <option value="67" url="/json/crm_search/all-accounts.action?accountType=5">
                                                {{'OBJECT_TERMINAL' | i18n}}
                                            </option>
                                            <option value="2" url="/json/oa_search/search-contact.action?pageNo=1">
                                                {{'OBJECT_CONTACT' | i18n}}
                                            </option>
                                        {{else}}
                                            {{if SESSION.func.account.l == "1"}}
                                            <option value="1"
                                                    url="/json/oa_search/search-account.action?pageNo=1&accountTypes=1">
                                                 {{#SESSION.keywords.account}}
                                            </option>
                                            {{/if}}
                                        {{if !SESSION.wanxue}}
                                            {{if SESSION.func.contact.l == "1"}}
                                            <option value="2" url="/json/oa_search/search-contact.action?pageNo=1">
                                                {{'OBJECT_CONTACT' | i18n}}
                                            </option>
                                            {{/if}}
                                            {{if SESSION.func.opportunity.l == "1"}}
                                            <option value="3" url="/json/oa_search/search-opp.action?pageNo=1">
                                                {{'OBJECT_OPPORTUNITY' | i18n}}
                                            </option>
                                            {{/if}}
                                            {{if SESSION.func.lead.l == "1"}}
                                            <option value="11" url="/json/oa_search/search-lead.action?pageNo=1">
                                                {{'OBJECT_LEAD' | i18n}}
                                            </option>
                                            {{/if}}
                                        {{/if}}
                                            {{if SESSION.func.campaign.l == "1"}}
                                            <option value="6" url="/json/oa_search/search-campaign.action?pageNo=1">
                                                {{#SESSION.keywords.campaign}}
                                            </option>
                                            {{/if}}
                                        {{/if}}
                                    </select>
                                    <input type="text" name="objectId" class="business_name"/>
                                </div>
                            </div>
                        </div>
                        <div class="schedule_field remind_field">
                        	<div class="field_name"></div>
                            <div class="field_content">
                                <div class="tixin">
                                <span class="check_box">
                                    <label>
                                        <input type="checkbox" name="isPrivate"/>{{'SCHEDULE_SEACRET' | i18n}}
                                    </label>
                                </span>
                                </div>
                            </div>
                        </div>
                        <div class="schedule_field"><a href="javascript:;" class="add_simi js-schedule-more">{{'SCHEDULE_ADD_DESATTACHSEC'
                            | i18n}}</a>
                        </div>
                        <div class="schedule_field_hidden">
                            <div class="schedule_field schedule_des_field remind_field">
                                <div class="field_name">{{'SCHEDULE_DESCRIPTION' | i18n}}</div>
                                <div class="field_content"><textarea class="schedule_des" name="description"
                                                                     placeholder="{{'SCHEDULE_INPUT_DESCRIPTION' | i18n}}"></textarea>
                                </div>
                            </div>
                            <div class="schedule_field remind_field">
                                <div class="field_name"></div>
                                <div class="field_content">
                                    <div class="fileAdd">
                                        <div class="fileinput-box">
                                            <span class="fileinput-button">添加文件</span>
                                        </div>
                                    </div>
                                    <!--<input type="file" name="uploadfiles" class="file_select"/>

                                    <div class="uploadifyQueue"></div>-->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="pop_bottom schedule_pop_bottom">
                    <div class="schedule_footer">
                        <div class="schedule_button_area">
                            <a href="javascript:;" class="pg-btn-white js-close">{{'CANCEL' | i18n}}</a>
                            <a href="javascript:;" class="pg-btn-blue js-create">{{'SCHEDULE_ADD' | i18n}}</a>
                        </div>
                    </div>
                </div>
            </div>
            <div title="{{'TITLE_TASK' | i18n}}" class="task_panel" data-plugin="taskEditController"
                 style="display:none;">
                <div class="pop_content schedule_pop_content  task_pop_content clear">
                    <input type="hidden" name="id" value=""/>

                    <div class="schedule_content">
                        <div class="schedule_type">
                            <div class="type_content_edit"><input type="text" name="name"
                                                                  placeholder="{{'SCHEDULE_DES_TASK_CONTENT' | i18n}}"/>
                            </div>
                        </div>
                        <div class="schedule_field">
                            <div class="field_name">{{'SCHEDULE_END_TIME' | i18n}}</div>
                            <div class="field_content">
                                <div class="data_content task_data_content">
                                    <input type="text" class="month" name="finishDate"
                                           placeholder="{{'SCHEDULE_SELECT_ENDDATE' | i18n}}"/>
                                    <input type="text" class="hours" name="finishTime"
                                           placeholder="{{'SCHEDULE_SELECT_ENDTIME' | i18n}}"/>
                                </div>
                            </div>
                        </div>
                        <div class="schedule_field remind_field">
                            <div class="field_name">{{'SCHEDULE_REMIND_TIME' | i18n}}</div>
                            <div class="field_content">
                                <select name="reminder" class="tixin">
                                    <option value="-1">{{'SCHEDULE_NO_REMIND' | i18n}}</option>
                                    <option value="0">{{'SCHEDULE_IN_TIME' | i18n}}</option>
                                    <option value="300">{{'SCHEDULE_EARLY_5MINUTE' | i18n}}</option>
                                    <option value="600">{{'SCHEDULE_EARLY_10MINUTE' | i18n}}</option>
                                    <option value="1800">{{'SCHEDULE_EARLY_30MINUTE' | i18n}}</option>
                                    <option value="3600">{{'SCHEDULE_EARLY_1HOUR' | i18n}}</option>
                                    <option value="7200">{{'SCHEDULE_EARLY_2HOUR' | i18n}}</option>
                                    <option value="21600">{{'SCHEDULE_EARLY_6HOUR' | i18n}}</option>
                                    <option value="86400">{{'SCHEDULE_EARLY_1DAY' | i18n}}</option>
                                    <option value="172800">{{'SCHEDULE_EARLY_2DAY' | i18n}}</option>
                                </select>
                            </div>
                            <a title="{{'SCHEDULE_REMIND_TOPHONE' | i18n}}" class="tixinhelp js-tooltip"
                               href="javascript:;"></a>
                        </div>
                        <div class="schedule_field remind_field">
                            <div class="field_name">{{'SCHEDULE_OWNER' | i18n}}</div>
                            <div class="field_content">
                                <input class="canyupeople" name="ownerId"/>
                            </div>
                        </div>
                        <div class="schedule_field remind_field">
                            <div class="field_name">{{'SCHEDULE_PARTNER' | i18n}}</div>
                            <div class="field_content"><input class="canyupeople" name="members"/></div>
                        </div>
                        <div class="schedule_field remind_field">
                            <div class="field_name">{{'SCHEDULE_RELATE_BUSINESS' | i18n}}</div>
                            <div class="field_content">
                                <div class="relation_div">
                                    <select name="belongId" class="relation_business">
                                        {{if SESSION.tenantType == 1}}
                                            <option value="66"
                                                    url="/json/crm_search/all-accounts.action?accountType=4">
                                                {{'OBJECT_AGENT' | i18n}}
                                            </option>
                                            <option value="67" url="/json/crm_search/all-accounts.action?accountType=5">
                                                {{'OBJECT_TERMINAL' | i18n}}
                                            </option>
                                            <option value="2" url="/json/oa_search/search-contact.action?pageNo=1">
                                                {{'OBJECT_CONTACT' | i18n}}
                                            </option>
                                        {{else}}
                                            {{if SESSION.func.account.l == "1"}}
                                            <option value="1"
                                                    url="/json/oa_search/search-account.action?pageNo=1&accountTypes=1">
                                                {{#SESSION.keywords.account}}
                                            </option>
                                            {{/if}}
                                            {{if !SESSION.wanxue}}
                                                {{if SESSION.func.contact.l == "1"}}
                                                <option value="2" url="/json/oa_search/search-contact.action?pageNo=1">
                                                    {{'OBJECT_CONTACT' | i18n}}
                                                </option>
                                                {{/if}}
                                                {{if SESSION.func.opportunity.l == "1"}}
                                                <option value="3" url="/json/oa_search/search-opp.action?pageNo=1">
                                                    {{'OBJECT_OPPORTUNITY' | i18n}}
                                                </option>
                                                {{/if}}
                                                {{if SESSION.func.lead.l == "1"}}
                                                <option value="11" url="/json/oa_search/search-lead.action?pageNo=1">
                                                    {{'OBJECT_LEAD' | i18n}}
                                                </option>
                                                {{/if}}
                                            {{/if}}
                                            {{if SESSION.func.campaign.l == "1"}}
                                            <option value="6" url="/json/oa_search/search-campaign.action?pageNo=1">
                                               {{#SESSION.keywords.campaign}}
                                            </option>
                                            {{/if}}
                                        {{/if}}
                                    </select>
                                    <input type="text" name="objectId" class="business_name"/>
                                </div>
                            </div>
                        </div>
                        <div class="schedule_field task_schedule_field"><a href="javascript:;" class="js-schedule-more">{{'SCHEDULE_ADD_DESATTACH'
                            | i18n}}</a>
                        </div>
                        <div class="schedule_field_hidden">
                            <div class="schedule_field schedule_des_field remind_field">
                                <div class="field_name">{{'SCHEDULE_DETAIL_DES' | i18n}}</div>
                                <div class="field_content">
                                    <textarea class="schedule_des" name="description"
                                              placeholder="{{'SCHEDULE_INPUT_TASK_DES' | i18n}}"></textarea>
                                </div>
                            </div>
                            <div class="schedule_field remind_field">
                                <div class="field_name"></div>
                                <div class="field_content">
                                    <div class="word_report_upload">
                                        <div class="fileAdd">
                                            <div class="fileinput-box">
                                                <span class="fileinput-button">添加文件</span>
                                            </div>
                                        </div>
                                        <!--<input type="file" name="uploadfiles" class="file_select"/>

                                        <div class="uploadifyQueue"></div>-->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="pop_bottom schedule_pop_bottom">
                    <div class="schedule_footer">
                        <div class="schedule_button_area">
                            <a href="javascript:;" class="pg-btn-white js-close">{{'CANCEL' | i18n}}</a>
                            <a href="javascript:;" class="pg-btn-blue js-create">{{'SCHEDULE_ADD_TASK' | i18n}}</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
